package com.hsj.busmanager.mapper;

import com.hsj.busmanager.api.Rent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rent record);

    int insertSelective(Rent record);

    Rent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rent record);

    int updateByPrimaryKey(Rent record);

    List<Rent> getrentCostPage(Integer start, int limit, @Param("rent") Rent rent,@Param("userId") Integer userId);

    int getNormalProjectCount(@Param("rent") Rent rent, @Param("userId")Integer userId);

    List<Rent> getRentTotal(Integer start, int limit);

    int getTotalCount();
}